@charset "utf-8";
/**
 * Created by Toma on 2016-7-12 09:11:02
 * @file 工具类 @ver 1.1.1
 */



/* mixin */
@mixin bg($w:100%,$h:100%,$po:center center){
  width: $w;
  height: $h;
  background-position: $po;
  background-repeat: no-repeat;
}
@mixin pos($t,$l,$pos:absolute){
  position: $pos;
  top: $t;
  left: $l;
}
@mixin pach($c){
  &:-moz-placeholder, textarea:-moz-placeholder { color: $c; }
  &::-moz-placeholder, textarea::-moz-placeholder { color: $c; }
  &:-ms-input-placeholder, textarea:-ms-input-placeholder { color: $c; }
  &::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color: $c; }
}




%inb{
  display: inline-block;
  vertical-align: middle;
}

@mixin biyao{
  /*! 工具类 */
  .inline{
    @extend %inb;
  }

  /* margin */
  .mb15{
    margin-bottom: 15px !important;
  }
  .mb20{
    margin-bottom: 22px !important;
  }
  .mb40{
    margin-bottom: 40px;
  }
  .mr20{
    margin-right: 20px;
  }
  .no-m{
    margin: 0 !important;
  }

  /* pading*/
  .pt5{
    padding-top: 5px;
  }
  .p20{
    padding: 20px;
  }
  .p10{
    padding: 10px;
  }
  .pt20{
    padding-top: 20px;
  }
  .plr20{
    padding: 0 20px;
  }
  .pt70{
    padding-top: 70px;
  }

  /* lh */
  .lh20{
    line-height: 20px;
  }
  .lh25{
    line-height: 25px;
  }
  .lh40{
    line-height: 40px;
    vertical-align: middle;
  }
  .lh48{
    line-height: 48px;
    vertical-align: middle;
  }

  /* BG */
  .bg-w{
    background-color: #fff;
  }
  .bg-glow{
    background: #f5f5f5;
  }

  /* Border*/
  .border{
    border:1px solid #ddd;
  }
  .border-tb{
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
  }
  .border-b{
    border-bottom: 1px solid #ddd;
  }
  .border-t{
    border-top: 1px solid #ddd;
  }
  .border-no-t{
    border-top: none;
  }

  /* Tabel */
  .displayt{
    display: table;
  }
  .cell{
    position: relative;
    display: table-cell;
    padding-right: 5px;
    &:last-child{
      padding-right: 0;
    }
  }

  /* w */
  .w90{
    width:90px;
    @extend %inb;
  }
  .w120{
    width: 120px;
  }
  .w160{
    width: 160px;
  }
  .w200{
    width: 200px;
  }
  .mw900{
    max-width: 900px;
    margin: 0 auto;
  }
  .ww{
    max-width: 100%;
    margin: 0 auto;
  }
  .w60b{
    width: 60%;
    margin: 0 auto;
  }
  .w100b{
    width: 100%;
  }

  /* h */
  .h360{
    height: 360px;
  }

  /* font */
  .ver12{
    vertical-align: -12px;
  }
  .fz20{
    font-size: 20px;
  }
  .fz{
    font-size:0;
  }

  .text-white{
    color: #fff;
  }
  .text-gray{
    color: #a9a9a9;
  }

  .nowrap{
    white-space: nowrap;
  }
}
